package com.kronos.gui;

import com.badlogic.gdx.InputProcessor;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.input.GestureDetector.GestureListener;

public abstract class Drawable implements InputProcessor, GestureListener {

	protected int x;
	protected int y;

	protected boolean disabled = false; 
	
	protected boolean passwordField = false;
	
	protected boolean changedState = false;
	
	public void setPosition(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}
	
	public void setX(int x) {
		this.x = x;
	}

	public void setY(int y) {
		this.y = y;
	}
	
	public void setPasswordField(boolean passwordField) {
		this.passwordField = passwordField;
	}
	
	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}
	
	public boolean isDisabled(boolean disabled) {
		return disabled;
	}
	
	public boolean changedState() {
		return changedState;
	}

	public abstract void update();
	public abstract void render(SpriteBatch sb);
}
